from django.conf.urls import patterns, include, url

import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'ihlj.views.home'),
    url(r'^accounts/', include('accounts.urls')),
    url(r'^upload/', include('upload.urls')),
    url(r'^album/', include('album.urls')),

    #url(r'^captcha/', include('captcha.urls')),
    #url(r'^forum/', include('forum.urls')),
    #url(r'^house/', include('house.urls')),
    #url(r'^market/', include('market.urls')),
    #url(r'^circle/', include('circle.urls')),
    #url(r'^image/', include('image.urls')),
    #url(r'^shop/', include('business.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^comments/result/', 'ihlj.views.json_comment'),
)

#if settings.DEBUG:
#    urlpatterns += patterns('django.contrib.staticfiles.views',
#        url(r'^media/(?P<path>.*)$', 'serve'),
#        )
#    urlpatterns += patterns('django.contrib.staticfiles.views',
#        url(r'^static/(?P<path>.*)$', 'serve'),
#        )
#
